<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\api\model;
use think\Model;
/**
 * Description of BaseModel
 *
 * @author Administrator
 */
class BaseModel  extends Model{
   
  //读取器 url加上地址
  protected function prefixImgUrl($value,$data)
  {
      $finaUrl=$value;
      if($data['from']==1){   
        $finaUrl=  config('setting.img_prefix').$value;   
      }
      return $finaUrl;    
  } 
}
